let map = {
    dataScopeStatus: {
        0: '超管',
        1: '团长',
        2: '组长',
        3: '个人'
    },
    accountStatus: {
        0: '锁定',
        1: '有效'
    },
    employeeStatus: {
        1: '在职',
        2: '离职'
    },
    sexStatus: {
        0: '男',
        1: '女',
        2: '保密'
    }
}

export const translate = (type, key) => {
    let tmp = map[type] ? map[type] : null
    if (tmp === null) return null
    return tmp[key] ? tmp[key] : null
}